package concurrency.thread;

public class Task implements Runnable {
	private int id = 0;
	
	public Task(int id){
		this.id = id;
	}
	
	@Override
	public void run() {
		int i = 0;
		while (i < 10) {
			System.out.println(Thread.currentThread().getName() + id + ": " + i);
			i++;
		}
	}

}
